const Koa = require('koa');
const app = new Koa();
const bodyParser = require('koa-bodyparser');
const user = require('./routes/user');

app.use(bodyParser());
app.use(user.routes());

const port = process.env.NODE_ENV !== "production" ? 3001 : 3000;
app.listen(port);

console.log('SERVER LISTENING', port)
